package com.hllxd.hism.star.basic.service.dao.mapper.mis;

import com.hllxd.hism.star.basic.service.model.order.ProductEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lixiyong
 * @date 2020/11/12 18:15
 */

@Mapper public interface ProductMapper {
    /**
     * 获取用户信息
     */
    List<ProductEntity> listProduct();

    List<ProductEntity> hotProduct();

    // 根据产品ID获取详情
    ProductEntity getProduct(@Param("ID") Long ID);

    List<ProductEntity> listProductByAttr(@Param("productCategoryID") String productCategoryID);

    Long insertProduct(ProductEntity entity);

    Long updateProduct(ProductEntity entity);

    Boolean deleteProduct(@Param("ids") String ids);
}
